<?php

use think\migration\Migrator;


class AlterCouponBrandAddDeletedat extends Migrator
{
    public function up()
    {
        $this->table('coupon_brand')
            ->addColumn('deleted_at', 'timestamp', ['null' => true, 'comment'=>'删除时间,删除标识'])
            ->update();
    }

    public function down()
    {
        $this->table('coupon_brand')->removeColumn('deleted_at');
    }
}
